package com.wf.ew.sell.biz;

import com.wf.ew.common.PageResult;
import com.wf.ew.system.model.User;
import com.wf.ew.sell.model.OutBill;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.jdbc.support.KeyHolder;

import java.util.List;

/**
 *
 * 数据层接口
 * @author : Doman
 * @date : 2019-12-06 17:46:49
 * @version ：1.0
 */
public interface OutBillBiz {

	/** 获取实体类表格
	 * @param page
	 * @param outBill
	 * @return
	 */
	public String list(PageResult<T> page, OutBill outBill, User loginUser);
	
	/**
	 * 获取实体类表格
	 * @param outBill
	 * @return
	 */
	public List<OutBill> list(OutBill outBill, User loginUser);
	
	/**
	 * 根据Id查询实体类
	 * @param outBill
	 * @return
	 */
	public OutBill getById(OutBill outBill);
	
	/**
	 * 保存实体类
	 * @param outBill
	 * @param loginUser
	 * @return
	 */
	public KeyHolder add(OutBill outBill, User loginUser);
	
	/**
	 * 修改实体类
	 * @param outBill
	 * @param loginUser
	 * @return
	 */
	public boolean update(OutBill outBill, User loginUser);
	
	/**
	 * 删除实体类
	 * @param outBill
	 * @param loginUser
	 * @return
	 */
	public boolean delete(OutBill outBill, User loginUser);

}
